\hypertarget{class_exercise__2__1__4}{
\section{Exercise\_\-2\_\-1\_\-4 Class Reference}
\label{class_exercise__2__1__4}\index{Exercise\_\-2\_\-1\_\-4@{Exercise\_\-2\_\-1\_\-4}}
}


\hyperlink{class_exercise}{Exercise} 2.1-\/4 Implementation of the pseudo code asked for the exercise.  




{\ttfamily \#include $<$Exercise\_\-2\_\-1\_\-4.h$>$}

Inheritance diagram for Exercise\_\-2\_\-1\_\-4:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_exercise__2__1__4}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_exercise__2__1__4_a2be365793534b50737d9188a1c266d23}{Exercise\_\-2\_\-1\_\-4} ()
\item 
virtual \hyperlink{class_exercise__2__1__4_a5ca8866a06107741f5d16c2fe29c49f5}{$\sim$Exercise\_\-2\_\-1\_\-4} ()
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
std::string \hyperlink{class_exercise__2__1__4_ac64e01136a21cbaf8199b2003bb219d4}{getTableString} (bool $\ast$\_\-aiTable, int \_\-iSize)
\begin{DoxyCompactList}\small\item\em Return a string containing the data of the table as a binary integer of the size \_\-iSize. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_exercise__2__1__4_a6d9b9b46632dfe5210984eff43cb2afd}{implementation} ()
\begin{DoxyCompactList}\small\item\em Implementation of the exercise solution by creating three bits array (two of 7 and one of 8), and adding the two of 7 bits into one of 8 bits. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{class_exercise}{Exercise} 2.1-\/4 Implementation of the pseudo code asked for the exercise. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_exercise__2__1__4_a2be365793534b50737d9188a1c266d23}{
\index{Exercise\_\-2\_\-1\_\-4@{Exercise\_\-2\_\-1\_\-4}!Exercise\_\-2\_\-1\_\-4@{Exercise\_\-2\_\-1\_\-4}}
\index{Exercise\_\-2\_\-1\_\-4@{Exercise\_\-2\_\-1\_\-4}!Exercise_2_1_4@{Exercise\_\-2\_\-1\_\-4}}
\subsubsection[{Exercise\_\-2\_\-1\_\-4}]{\setlength{\rightskip}{0pt plus 5cm}Exercise\_\-2\_\-1\_\-4::Exercise\_\-2\_\-1\_\-4 (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_exercise__2__1__4_a2be365793534b50737d9188a1c266d23}
\hypertarget{class_exercise__2__1__4_a5ca8866a06107741f5d16c2fe29c49f5}{
\index{Exercise\_\-2\_\-1\_\-4@{Exercise\_\-2\_\-1\_\-4}!$\sim$Exercise\_\-2\_\-1\_\-4@{$\sim$Exercise\_\-2\_\-1\_\-4}}
\index{$\sim$Exercise\_\-2\_\-1\_\-4@{$\sim$Exercise\_\-2\_\-1\_\-4}!Exercise_2_1_4@{Exercise\_\-2\_\-1\_\-4}}
\subsubsection[{$\sim$Exercise\_\-2\_\-1\_\-4}]{\setlength{\rightskip}{0pt plus 5cm}Exercise\_\-2\_\-1\_\-4::$\sim$Exercise\_\-2\_\-1\_\-4 (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_exercise__2__1__4_a5ca8866a06107741f5d16c2fe29c49f5}


\subsection{Member Function Documentation}
\hypertarget{class_exercise__2__1__4_ac64e01136a21cbaf8199b2003bb219d4}{
\index{Exercise\_\-2\_\-1\_\-4@{Exercise\_\-2\_\-1\_\-4}!getTableString@{getTableString}}
\index{getTableString@{getTableString}!Exercise_2_1_4@{Exercise\_\-2\_\-1\_\-4}}
\subsubsection[{getTableString}]{\setlength{\rightskip}{0pt plus 5cm}std::string Exercise\_\-2\_\-1\_\-4::getTableString (
\begin{DoxyParamCaption}
\item[{bool $\ast$}]{\_\-aiTable, }
\item[{int}]{\_\-iSize}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{class_exercise__2__1__4_ac64e01136a21cbaf8199b2003bb219d4}


Return a string containing the data of the table as a binary integer of the size \_\-iSize. 


\begin{DoxyParams}{Parameters}
{\em \_\-aiTable} & Table of bool to print. \\
\hline
{\em \_\-iSize} & Size of the table.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A string containing the data of the table. 
\end{DoxyReturn}
\hypertarget{class_exercise__2__1__4_a6d9b9b46632dfe5210984eff43cb2afd}{
\index{Exercise\_\-2\_\-1\_\-4@{Exercise\_\-2\_\-1\_\-4}!implementation@{implementation}}
\index{implementation@{implementation}!Exercise_2_1_4@{Exercise\_\-2\_\-1\_\-4}}
\subsubsection[{implementation}]{\setlength{\rightskip}{0pt plus 5cm}void Exercise\_\-2\_\-1\_\-4::implementation (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}private, virtual\mbox{]}}}}
\label{class_exercise__2__1__4_a6d9b9b46632dfe5210984eff43cb2afd}


Implementation of the exercise solution by creating three bits array (two of 7 and one of 8), and adding the two of 7 bits into one of 8 bits. 



Implements \hyperlink{class_exercise_a59e53156a35ac23269d30714314017a3}{Exercise}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/marc/SVN/IntroToAlgo/Chapter2/\hyperlink{_exercise__2__1__4_8h}{Exercise\_\-2\_\-1\_\-4.h}\item 
/home/marc/SVN/IntroToAlgo/Chapter2/\hyperlink{_exercise__2__1__4_8cpp}{Exercise\_\-2\_\-1\_\-4.cpp}\end{DoxyCompactItemize}
